package com.zc.chapter41.component;

import org.springframework.stereotype.Component;

@Component
public class TestBean {
    private String password;
    private String username;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }


    public void sayHello(){
        System.out.println("这是TestBean的sayHello方法");
    }

    public void start(){
        System.out.println("TestBean的 start初始化方法");
    }
    public void cleanup(){
        System.out.println("TestBean的 cleanup销毁方法");
    }
}
